package io.snow.mybatis.admin.service;

import io.snow.mybatis.auth.entity.AuthorizationUser;
import io.snow.mybatis.core.common.Result;

import javax.servlet.http.HttpServletResponse;

public interface LoginService {

    /*
     * 登录方法的处理
     */
    public Result login(AuthorizationUser user, HttpServletResponse response);

    /*
     * 预登录
     */
    public Result doLogin(AuthorizationUser user,HttpServletResponse response);

    /*
     * 权限验证
     */
    Result permission(String authentication, String url, String method);

    /*
     * 退出登录
     */
    Result logout(String authentication);
}
